package com.rainbow.validate

import com.rainbow.properties.SecurityConstants

enum class ValidateCodeType {

    /**
     * 短信验证码
     */
    SMS {
        override val paramNameOnValidate: String
            get() = SecurityConstants.DEFAULT_PARAMETER_NAME_CODE_SMS
    },
    /**
     * 图片验证码
     */
    IMAGE {
        override val paramNameOnValidate: String
            get() = SecurityConstants.DEFAULT_PARAMETER_NAME_CODE_IMAGE
    };


    /**
     * 校验时从请求中获取的参数的名字
     * @return
     */
    abstract val paramNameOnValidate: String
}